package net.dgg.zz.credential.certificateSpecialty.dao;


import net.dgg.zz.credential.certificateSpecialty.entity.CertificateSpecialty;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Component
public interface CertificateSpecialtyDao {
    int deleteByPrimaryKey(Long id);

    int insert(CertificateSpecialty record);

    int insertSelective(CertificateSpecialty record);

    CertificateSpecialty selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CertificateSpecialty record);

    int updateByPrimaryKey(CertificateSpecialty record);

    int deleteByCertificateId(Long certificateId);

    List<Map> findByCondition(Map params);

    List<Long> findByByCertificateId(Long certificateId);

    /**
     *
     * @param id
     * @return
     */
    List<CertificateSpecialty> findCertificateSpecialtyByCertificateId(Long id);
}